<?php 

class MediaAction extends BaseAction{


	/**
	 * 首页
	 * @return [type] [description]
	 */
	function index(){
		$map1['pid'] = 57;   //Ceramics
		$map2['pid'] = 58;   //Sanitary ware
		$map['cid'] = 1;
		$ads = M('ad')->where($map)->select();
		$list1 = M("category")->where($map1)->order(array("orderid"=>"asc"))->select();
		$list2 = M("category")->where($map2)->order(array("orderid"=>"asc"))->select();
		$this->assign("ads",$ads);
		$this->assign("list1",$list1);
		$this->assign("list2",$list2);
		$this->display();
		//header("location:".U("cn"));
	}


}

?>